import request from '@/utils/request'

// 查询ETC门架区间数据列表
export function listEtcGantryTree(query) {
  return request({
    url: '/function/EtcGantryTree/list',
    method: 'get',
    params: query
  })
}

// 查询ETC门架区间数据详细
export function getEtcGantryTree(id) {
  return request({
    url: '/function/EtcGantryTree/' + id,
    method: 'get'
  })
}

// 新增ETC门架区间数据
export function addEtcGantryTree(data) {
  return request({
    url: '/function/EtcGantryTree',
    method: 'post',
    data: data
  })
}

// 修改ETC门架区间数据
export function updateEtcGantryTree(data) {
  return request({
    url: '/function/EtcGantryTree',
    method: 'put',
    data: data
  })
}

// 删除ETC门架区间数据
export function delEtcGantryTree(id) {
  return request({
    url: '/function/EtcGantryTree/' + id,
    method: 'delete'
  })
}

// 导出ETC门架区间数据
export function exportEtcGantryTree(query) {
  return request({
    url: '/function/EtcGantryTree/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}
